﻿<Window x:Class="frmAddEvent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"

    Title="Add Event" Height="487" Width="789" Background="Gray" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen">
    <Grid>
        <GroupBox Header="Categories" Height="89" HorizontalAlignment="Left" Margin="10,7,0,0" Name="grpCategory" VerticalAlignment="Top" Width="208">
            <Grid>
                <RadioButton Height="15.8" Margin="17,6,51,0" Name="radCatSales" VerticalAlignment="Top" IsChecked="True">Sales</RadioButton>
                <RadioButton Margin="17,27,51,25" Name="radCatCW">Caseworker</RadioButton>
                <RadioButton Height="15.8" Margin="17,0,51,5" Name="radCatAll" VerticalAlignment="Bottom">All</RadioButton>
            </Grid>
        </GroupBox>
        <Label Height="22" HorizontalAlignment="Left" Margin="10,102,0,0" Name="Label1" VerticalAlignment="Top" Width="45">Add to</Label>
        <Label Background="White" Height="21" HorizontalAlignment="Left" Margin="10,120,0,0" Name="lblAddTo" VerticalAlignment="Top" Width="206" />
        <GroupBox Header="Event Type" HorizontalAlignment="Left" Margin="12,162,0,217" Name="grpEventTypes" Width="206">
            <Grid>
                <RadioButton Height="14.8" Margin="15,9,70,0" Name="radEvent" VerticalAlignment="Top" IsChecked="True">Single Event</RadioButton>
                <RadioButton Height="14.8" Margin="15,0,70,7" Name="radTask" VerticalAlignment="Bottom">Schedule as task</RadioButton>
            </Grid>
        </GroupBox>
        <GroupBox Header="Task" Height="176" HorizontalAlignment="Left" Margin="12,0,0,35" Name="grpTask" VerticalAlignment="Bottom" Width="206">
            <Grid>
                <Label Height="25" Margin="11,0,87,0" Name="Label3" VerticalAlignment="Top">Schedule for</Label>
                <!--<TextBox Margin="17,69,47,65.723" Name="txtTaskDate" />-->
                <my:DatePicker  Margin="17,69,47,65.723" Name="txtTaskDate"  xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />
                <Button Height="20" HorizontalAlignment="Left" Margin="15,0,0,36" Name="btnCheckDay" VerticalAlignment="Bottom" Width="77">Check Day</Button>
                <ComboBox Height="21" Margin="8,23,16,0" Name="drpCon" VerticalAlignment="Top" Width="152" />
                <Label Height="25" Margin="11,47,87,0" Name="Label4" VerticalAlignment="Top">Task Date</Label>
                <CheckBox Height="16" Margin="16,0,58,10" Name="chkUrgent" VerticalAlignment="Bottom">Mark as URGENT</CheckBox>
                <Button HorizontalAlignment="Right" Margin="0,69,14,66" Name="btnCalendar" Width="27" Visibility="Hidden">
                    <!--<Button.Foreground>                    
                            <ImageBrush  ImageSource="Images/calendar.ico"></ImageBrush>
                     </Button.Foreground>-->
                </Button>
              
            </Grid>
        </GroupBox>
        <ListView Background="White" Margin="226,14,340,30" Name="lstEventTypes">
            <ListView.View >
                <GridView >
                    <GridView.Columns >
                        <GridViewColumn Header="Event Name" DisplayMemberBinding="{Binding Path=EventType_Name}" Width="201" ></GridViewColumn>
                    </GridView.Columns>
                </GridView>
            </ListView.View>
        </ListView>
        <TextBox Margin="0,14,4,30" Name="txtEvent"  TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" SpellCheck.IsEnabled="True" AcceptsReturn="True" HorizontalAlignment="Right" Width="330" />
        <Button Height="20" HorizontalAlignment="Left" Margin="33,0,0,4" Name="btnCancel" VerticalAlignment="Bottom" Width="77">Cancel</Button>
        <Button Height="20" Visibility="Hidden" Margin="351,0,339,4" Name="btnSpell" VerticalAlignment="Bottom">Spell Check</Button>
        <Button Height="20" Margin="687,0,0,4" Name="btnSave" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="77">Save Event</Button>
    </Grid>
</Window>
